import request from '@/utils/request'
// 获取banner
export function getBannerListApi(data) {
	return request({
		url: `/info/api/cc/common/banner/list`,
		method: 'GET',
		params: data
	})
}
// 搜索
export function homeSearchApi(data) {
	return request({
		url: `/info/api/cc/common/content/query`,
		method: 'GET',
		params: data
	})
}

// banner倒计时
export function getCountInfoApi(data) {
	return request({
		url: `/info/api/cc/common/countdown/info`,
		method: 'GET',
		params: data
	})
}
// 根据菜单查询banner
export function getMenuBannerApi(data) {
	return request({
		url: `/info/api/cc/common/menu/banner`,
		method: 'GET',
		params: data
	})
}
// 根据菜单查询banner
export function getMenuListApi(data) {
	return request({
		url: `/info/api/cc/common/menu/list`,
		method: 'GET',
		params: data
	})
}
// 获取首页统计数据
export function getHomeStatisticsApi(data) {
	return request({
		url: `/info/api/cc/common/statistics/info`,
		method: 'GET',
		params: data
	})
}
// 获取大赛进程和介绍
export function getPlatformApi(data) {
	return request({
		url: `/info/api/cc/common/platform/info`,
		method: 'GET',
		params: data
	})
}
// 成员馆列表
export function getMemberListApi(data) {
	return request({
		url: `/info/api/cc/CcMemberHallInfo/list`,
		method: 'GET',
		params: data
	})
}
// 成员馆详情
export function getMemberDetailsApi(data) {
	return request({
		url: `/info/api/cc/CcMemberHallInfo/info/${data.recId}`,
		method: 'GET'
	})
}
// 获取成员馆动态
export function getMemberNewApi(data) {
	return request({
		url: `/info/api/cc/CcMemberHallInfo/queryMemberHallDynamicsList`,
		method: 'GET',
		params: data
	})
}
// 获取成员馆动态
export function getMemberNewDetailsApi(data) {
	return request({
		url: `/info/api/cc/CcMemberHallInfo/${data.articleId}`,
		method: 'GET'
	})
}
// 获取新闻列表
export function getNewsApi(data) {
	return request({
		url: `/info/api/cc/news/queryNewsDynamicList`,
		method: 'GET',
		params: data
	})
}

// 获取通知公告列表
export function getNoticeListApi(data) {
	return request({
		url: `/info/api/cc/news/queryNotificationAnnouncementList`,
		method: 'GET',
		params: data
	})
}

// 获取友情链接
export function getLinksApi(data) {
	return request({
		url: `/info/api/cc/links/list`,
		method: 'GET',
		params: data
	})
}